//
//  MXFindBlockTypeFourTableViewCell.m
//  MXの衣柜
//
//  Created by 马霄 on 15/8/14.
//  Copyright (c) 2015年 霄 马. All rights reserved.
//
#define WIDTH ([UIScreen mainScreen].bounds.size.width)
#define HEIGHT ([UIScreen mainScreen].bounds.size.height)
#import "MXFindBlockTypeFourTableViewCell.h"
#import "MXImageSize.h"
#import "Height.h"
@implementation MXFindBlockTypeFourTableViewCell
- (void)dealloc
{
    [_TextLabel release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.TextLabel = [[[UILabel alloc] init] autorelease];
        self.TextLabel.backgroundColor = [UIColor whiteColor];
        self.TextLabel.font = [UIFont systemFontOfSize:18];
        self.TextLabel.numberOfLines = 0;
        [self.contentView addSubview:self.TextLabel];
    }
    return self;
}

// 方法实现
- (void)getBlockModel:(MXFindDetailModel *)blockModel productArr:(NSMutableArray *)productArr
{
    [super layoutSubviews];
    
    self.TextLabel.text = blockModel.article;
    
    
    CGFloat Textheight = [Height getTextHeight:blockModel.article Wid:WIDTH Font:18];
    CGFloat TextLabelX = 0;
    CGFloat TextLabelY = 0;
    CGFloat TextLabelW = WIDTH;
    
    
//    NSLog(@"%f", Textheight);
    
    self.TextLabel.frame = CGRectMake(TextLabelX, TextLabelY, TextLabelW, Textheight);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
